import { App, createApp } from 'vue';
import { QuillEditor } from '@vueup/vue-quill';
import 'element-plus/dist/index.css';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
import Page from '@/components/Page.vue';
import '@vueup/vue-quill/dist/vue-quill.snow.css';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import Appp from './App.vue';
import router from './router';
import store from './store';
// 日期转为其他语言 默认是英文
import ElementPlus from 'element-plus';

const app = createApp(Appp);
// 日期转换
app.use(ElementPlus, {
  locale: zhCn,
});
app.component('QuillEditor', QuillEditor);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.component('Page', Page);
app.use(store);
app.use(router);
app.use(ElementPlus);
app.mount('#app');
